package com.lemon.rpcframe.dao.contract;

import java.util.List;

import com.lemon.rpcframe.dao.Total;
import com.lemon.rpcframe.dao.entity.TaskLogBean;

public interface ITaskLogService {

    /**
     * 保存一条任务运行日志
     * @param entity
     * @return
     * @throws Exception
     */
    public abstract long insert(TaskLogBean entity) throws Exception;

    /**
     * 批量保存任务运行日志
     * @param entitys
     * @throws Exception
     */
    public abstract void insertBatch(List<TaskLogBean> entitys) throws Exception;

    /**
     * 分页查询任务的日志信息
     * @param taskid
     * @param start
     * @param end
     * @param pageSize
     * @param page
     * @param total
     * @return
     * @throws Exception
     */
    public abstract List<TaskLogBean> loadPageByTaskGroup(String taskTrackerGroup, int pageSize, int page, Total<Integer> total) throws Exception;

    /**
     * 查询任务的日志总量
     * @param taskid
     * @param start
     * @param end
     * @return
     * @throws Exception
     */
    public abstract int countByTaskGroup(String taskTrackerGroup) throws Exception;
}
